home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS16.ADF
/
C
/
InputHandler
/
in.DOC
< prev
next >
Wrap
Text File
|
1989-01-27
|
3KB
|
98 lines
This describes two programs, "in" and "in1".
The program "in" sets up an input handler that traps some keystokes and
converts them into a set of keystrokes that are very useful when using the
program TxEd (editor by Microsmiths). The generated keystrokes are normally
quite difficult to enter if you like to keep your right hand on the mouse
and use the left hand to perform various functions.
Note: In order to keep the size of the program very small, there is no use
of the functions printf etc. Rather, an autorequestor is specified.
However, if the intuition.library cannot be opened (very rare) then a
silent death occurs. I didn't want to make the program twice as big just
to say goodbye in the case you have a totally screwed up system.
The program defines the following keystrokes:
1. quick selection of a "drag" buffer COPYied to the clipboard
left alt down -> right Amiga-b (hold down during text selection)
left alt up -> right Amiga-c
This operation permits a quick copy to the clipboard. First position the
cursor at the beginning of the text to copy to the clipboard. Then depress
the left alt key and hold it down. While it is down, drag select and/or
use the cursor control keys to highlight text. When all the text is
highlighted, release the left alt key. This will copy the highlighted text
to the clipboard. Note: if the alt key is released with anything else
held down, other than the left mouse button, the copy is not done. This
can be used to cancel by depressing some key such as the right mouse
button.
2. quick selection of a "drag" buffer CUT to clip
left-shift left-alt down -> right Amiga-b (hold down during text selection)
left-shift left-alt up -> right Amiga-c
This is like the copy operation above, but it does a cut instead. For a
cut, the shift key may be depressed before or after the alt key. The left
mouse button may NOT be down when the shift-alt is depressed. This is to
avoid an accident and permit an easier cancel. Just don't release the
mouse button.
3. quick insert
left-amiga down/up -> right Amiga-i
This will do an insert. It is usually used just after a copy or a cut.
There can be no other keys held down.
4. Temporary disable of mapping functions.
left-shift right-shift
This will toggle on/off all special mapping.
5. Exit of program
left-control left-shift right-shift
This will exit the program. The left-control and left-shift must be down
first, then a right-shift down and then up will cause a program exit.
6. function key mapping:
Each of these occurs on the down-stroke of the key, thus permitting a
repeat.
f1 -> right amiga-d screen down
f2 -> right amiga-u screen up
f3 -> right amiga-t toggle begin/end of file
f6 -> right amiga-f format
There is also a program "in1" that is quite similar to the sample program
in the rom kernel manual, which I used to dump keystrokes and their hex
values. Just invoke in1 and as soon as you move the mouse a window will be
created to dump values. Click outside the window (preferably in no window
at all) if you want to see a dump of keystrokes. This program will exit
with a f1 keystroke. Note that it only dumps at most every 1/10'th of a
second so not all events will be traced.